import request from '@/utils/request'

// 查询期货基本合约列表
export function listFutureBaseInfor(query) {
  return request({
    url: '/invest/futureBaseInfor/list',
    method: 'get',
    params: query
  })
}

// 查询期货基本合约详细
export function getFutureBaseInfor(id) {
  return request({
    url: '/invest/futureBaseInfor/' + id,
    method: 'get'
  })
}

// 新增期货基本合约
export function addFutureBaseInfor(data) {
  return request({
    url: '/invest/futureBaseInfor',
    method: 'post',
    data
  })
}

// 修改期货基本合约
export function updateFutureBaseInfor(data) {
  return request({
    url: '/invest/futureBaseInfor',
    method: 'put',
    data
  })
}

// 删除期货基本合约
export function delFutureBaseInfor(id) {
  return request({
    url: '/invest/futureBaseInfor/' + id,
    method: 'delete'
  })
}
